-- GENERATED SPELL FOR [Zul'Farrak Dead Hero] --


function spell0_7276(pUnit, Event) --@Announce Zul\'Farrak Zombie,n/a--
pUnit:FullCastSpellOnTarget(10747,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7276', 619, 1)
end

function spell1_7276(pUnit, Event) --@Infected Wound,n/a--
pUnit:FullCastSpellOnTarget(3427,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7276', 30305, 1)
end

function Sorts_7276(pUnit, Event)
local choix_sorts_7276 = math.random(0, 1)
if choix_sorts_7276 == 0 then
pUnit:RegisterEvent('spell0_7276', 1, 1)
end
if choix_sorts_7276 == 1 then
pUnit:RegisterEvent('spell1_7276', 1, 1)
end
end

function mob7276_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_7276', math.random(1500, 3000), 1)
end

function mob7276_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7276_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7276_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(7276, 1, 'mob7276_Action')
RegisterUnitEvent(7276, 2, 'mob7276_Leave')
RegisterUnitEvent(7276, 3, 'mob7276_Kill')
RegisterUnitEvent(7276, 4, 'mob7276_Die')
